﻿#ifndef DDSHEETCTRL_H
#define DDSHEETCTRL_H

#include "SheetGlobal.h"

#include <QMap>
#include <QObject>

class SheetView;
class InsSheetView;

class SHEET_EXPORT SheetInterface : public QObject
{
	Q_OBJECT

public:
	SheetInterface(QObject *parent = 0);
	~SheetInterface();

public:

	QWidget * openSheet(int sheetid, int sheetBox);

	bool closeSheet(int sheetid);
	bool closeSheet(QWidget * widget);
	int curOpenSheetCount();

private:
	QMap< int, SheetView * > mapOpenSheet;
	QString strCurOper;
	QString strCurUser;

};

#endif // DDSHEETCTRL_H
